using System;
using System.Windows.Forms;

namespace AlgLrn
{
    public partial class frmMain : Form
    {
        #region Constructors
        public frmMain()
        {
            InitializeComponent();
        }
        #endregion

        #region Event Handlers
        private void frmMain_Load(object sender, EventArgs e)
        {
            cbbxActivity.SelectedIndex = 0;
        }

        private void btnStart_Click(object sender, EventArgs e)
        {
            switch (cbbxActivity.SelectedIndex)
            {
                case Constants.Sorting:
                    frmSort frmSrt = new frmSort();
                    frmSrt.ShowDialog();
                    break;
                case Constants.Searching:
                    frmSearch frmSrch = new frmSearch();
                    frmSrch.ShowDialog();
                    break;
                default:
                    break;
            }
        }
        #endregion
    }
}
